package com.seaboxdata.util;

import java.io.IOException;

/**
 * @author
 * @create 2021-06-29 18:39
 **/
public class DecodeEncodeUtils {

    private static final String syxx_key = "JYZNHDSYXX101953";

    private static final String jbxx_key = "JYZNHDRKJBXX102444";

    public static String decodeSyxx(String key) throws IOException{
        return SM4Utils.strDecode(key,syxx_key);
    }

    public static String decodeJbxx(String key) throws IOException{
        return SM4Utils.strDecode(key,jbxx_key);
    }

    public static String encodeSyxx(String key) throws IOException{
        return SM4Utils.strEncode(key,syxx_key);
    }

    public static String encodeJbxx(String key) throws IOException{
        return SM4Utils.strEncode(key,jbxx_key);
    }


}
